//
//  XDWithdrawProgressView.m
//  xindailianmeng
//
//  Created by 张东 on 2017/2/14.
//  Copyright © 2017年 xindailianmeng.cn. All rights reserved.
//

#import "XDWithdrawProgressView.h"
#import "XDWithdrawProgressModel.h"
@interface XDWithdrawProgressView ()

@property (weak, nonatomic) IBOutlet UILabel *wdStatusMsgLb;

@property (weak, nonatomic) IBOutlet UILabel *startTimeLb;
@property (weak, nonatomic) IBOutlet UILabel *ingTimeLb;
@property (weak, nonatomic) IBOutlet UILabel *endTimeLb;
@property (weak, nonatomic) IBOutlet UIView *styeView;
@property (weak, nonatomic) IBOutlet UIView *threeView;

@end


@implementation XDWithdrawProgressView

- (void)setModel:(XDWithdrawProgressModel *)model {
    _model = model;
    
    self.wdStatusMsgLb.text = _model.wdStatusMsg;
    
    self.startTimeLb.text = _model.startTime;
    
    self.ingTimeLb.text = _model.ingTime;
    if (_model.wdStatus == 1) {
        self.endTimeLb.text = [NSString stringWithFormat:@"预计%@",_model.endTime];
        self.styeView.backgroundColor = kColorRGB(197,197,197);
        self.endTimeLb.textColor = kColorRGB(197,197,197);
        self.wdStatusMsgLb.textColor = kColorRGB(197,197,197);
        self.threeView.backgroundColor = kColorRGB(197,197,197);
    } else {
        self.endTimeLb.text = _model.endTime;
        self.styeView.backgroundColor = kColorRGB(146,99,0);
        self.endTimeLb.textColor = kColorRGB(146,99,0);
        self.wdStatusMsgLb.textColor = kColorRGB(146,99,0);
        self.threeView.backgroundColor = kColorRGB(146,99,0);
    }
    
    
}
@end
